<?php

require_once 'Core/Content/Filter.php';

class Core_View_Filter_CoreModule extends Core_Content_Filter
{
    public $tag = 'coreModule';

    protected function _callback($matches)
    {
        $attribs = $this->getAttributes($matches[0]);
        if (is_array($attribs)) {
            return $this->view->action($attribs['action'], 'public', 'mod_' . $attribs['module'], $attribs);
        }
        return null;
    }
}